#include "sendcheck.h"
#include "ui_sendcheck.h"
#include <QMessageBox>
sendcheck *sendcheck::mysendcheck=nullptr;
sendcheck::sendcheck(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::sendcheck)
{
    ui->setupUi(this);
}

sendcheck::~sendcheck()
{
    delete ui;
}

void sendcheck::on_pushButton_2_clicked()
{
    emit(send__check(ui->lineEdit->text()));
}

void sendcheck::on_pushButton_clicked()
{
     emit(send__yanzheng(ui->lineEdit_2->text()));
}
void sendcheck::feed_back(bool a){
    if(a){
        emit(openflist(true));
        close();
    }
    else{
        QMessageBox::warning(this, tr("Waring"),
                                     tr("验证码错误！"),
                                      QMessageBox::Yes);
        ui->lineEdit->clear();    }}
